package com.gopay.common.domain.pg;


import javax.persistence.*;

import com.gopay.common.domain.BaseEntity;

import java.sql.Timestamp;
import java.math.BigDecimal;


/**
 * @PgP2pOrderTransDtl.java
 * @author fanghw
 * @2014-4-18 下午3:56:03  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name="PG_P2P_ORDER_TRANS_DTL")
public class PgP2pOrderTransDtl extends BaseEntity {
	private static final long serialVersionUID = 1L;
	private int transDtlSq;
	private String bid;
	
	private String charset;
	private BigDecimal comAmt;
	private String comPayer;
	private String contractNo;
	private Timestamp createdTs;
	private String curType;
	private String feePayer;
	private String gatewayChannel;
	private String gatewayVersion;
	private Timestamp gopayServerTime;
	private Timestamp gopayTxnTm;
	private String isAuto;
	private String language;
	private String lastUpdTrancode;
	private Timestamp lastUpdTs;
	private String legalOrderRepaet;
	private String merId;
	private String merNotifyFrontUrl;
	private String merNotifyServerUrl;
	private String merNotifyStat;
	private String merOrderId;
	private String merRemark1;
	private String merRemark2;
	private String merRemark3;
	private String merRemark4;
	private String merRemark5;
	private BigDecimal merTxnAmt;
	private String merTxnCd;
	private Timestamp merTxnTm;
	private String payInfo;
	private String recvInfo;
	private String reqRefer;
	private String rspCode;
	private String signType;
	private String sysRemark;
	private String tranCmd;
	
	private String transLaunchIp;

	//add by songfengli 20160927
	private String remoteIp;

	public PgP2pOrderTransDtl() {
	}

	@Id
    @SequenceGenerator(name = "PgP2pOrderTransDtlSequence", sequenceName = "PG_P2P_ORDER_TRANS_DTL_SEQ")
    @GeneratedValue(generator = "PgP2pOrderTransDtlSequence", strategy = GenerationType.SEQUENCE)
	@Column(name="TRANS_DTL_SQ", nullable=false, precision=22)
    public int getTransDtlSq() {
        return this.transDtlSq;
    }

    public void setTransDtlSq(int transDtlSq) {
        this.transDtlSq = transDtlSq;
    }

	@Column(length=30)
	public String getBid() {
		return this.bid;
	}

	public void setBid(String bid) {
		this.bid = bid;
	}

	@Column(length=1)
	public String getCharset() {
		return this.charset;
	}

	public void setCharset(String charset) {
		this.charset = charset;
	}


	@Column(name="COM_AMT", precision=20, scale=2)
	public BigDecimal getComAmt() {
		return this.comAmt;
	}

	public void setComAmt(BigDecimal comAmt) {
		this.comAmt = comAmt;
	}


	@Column(name="COM_PAYER", length=20)
	public String getComPayer() {
		return this.comPayer;
	}

	public void setComPayer(String comPayer) {
		this.comPayer = comPayer;
	}


	@Column(name="CONTRACT_NO", length=20)
	public String getContractNo() {
		return this.contractNo;
	}

	public void setContractNo(String contractNo) {
		this.contractNo = contractNo;
	}


	@Column(name="CREATED_TS", nullable=false)
	public Timestamp getCreatedTs() {
		return this.createdTs;
	}

	public void setCreatedTs(Timestamp createdTs) {
		this.createdTs = createdTs;
	}


	@Column(name="CUR_TYPE", length=3)
	public String getCurType() {
		return this.curType;
	}

	public void setCurType(String curType) {
		this.curType = curType;
	}


	@Column(name="FEE_PAYER", length=20)
	public String getFeePayer() {
		return this.feePayer;
	}

	public void setFeePayer(String feePayer) {
		this.feePayer = feePayer;
	}


	@Column(name="GATEWAY_CHANNEL", nullable=false, length=2)
	public String getGatewayChannel() {
		return this.gatewayChannel;
	}

	public void setGatewayChannel(String gatewayChannel) {
		this.gatewayChannel = gatewayChannel;
	}


	@Column(name="GATEWAY_VERSION", nullable=false, length=5)
	public String getGatewayVersion() {
		return this.gatewayVersion;
	}

	public void setGatewayVersion(String gatewayVersion) {
		this.gatewayVersion = gatewayVersion;
	}


	@Column(name="GOPAY_SERVER_TIME")
	public Timestamp getGopayServerTime() {
		return this.gopayServerTime;
	}

	public void setGopayServerTime(Timestamp gopayServerTime) {
		this.gopayServerTime = gopayServerTime;
	}


	@Column(name="GOPAY_TXN_TM", nullable=false)
	public Timestamp getGopayTxnTm() {
		return this.gopayTxnTm;
	}

	public void setGopayTxnTm(Timestamp gopayTxnTm) {
		this.gopayTxnTm = gopayTxnTm;
	}


	@Column(name="IS_AUTO", length=1)
	public String getIsAuto() {
		return this.isAuto;
	}

	public void setIsAuto(String isAuto) {
		this.isAuto = isAuto;
	}


	@Column(name="\"LANGUAGE\"", length=1)
	public String getLanguage() {
		return this.language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}


	@Column(name="LAST_UPD_TRANCODE", length=6)
	public String getLastUpdTrancode() {
		return this.lastUpdTrancode;
	}

	public void setLastUpdTrancode(String lastUpdTrancode) {
		this.lastUpdTrancode = lastUpdTrancode;
	}


	@Column(name="LAST_UPD_TS", nullable=false)
	public Timestamp getLastUpdTs() {
		return this.lastUpdTs;
	}

	public void setLastUpdTs(Timestamp lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}


	@Column(name="LEGAL_ORDER_REPAET", length=1)
	public String getLegalOrderRepaet() {
		return this.legalOrderRepaet;
	}

	public void setLegalOrderRepaet(String legalOrderRepaet) {
		this.legalOrderRepaet = legalOrderRepaet;
	}


	@Column(name="MER_ID", nullable=false, length=10)
	public String getMerId() {
		return this.merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}


	@Column(name="MER_NOTIFY_FRONT_URL", length=500)
	public String getMerNotifyFrontUrl() {
		return this.merNotifyFrontUrl;
	}

	public void setMerNotifyFrontUrl(String merNotifyFrontUrl) {
		this.merNotifyFrontUrl = merNotifyFrontUrl;
	}


	@Column(name="MER_NOTIFY_SERVER_URL", length=500)
	public String getMerNotifyServerUrl() {
		return this.merNotifyServerUrl;
	}

	public void setMerNotifyServerUrl(String merNotifyServerUrl) {
		this.merNotifyServerUrl = merNotifyServerUrl;
	}


	@Column(name="MER_NOTIFY_STAT", length=1)
	public String getMerNotifyStat() {
		return this.merNotifyStat;
	}

	public void setMerNotifyStat(String merNotifyStat) {
		this.merNotifyStat = merNotifyStat;
	}


	@Column(name="MER_ORDER_ID", nullable=false, length=30)
	public String getMerOrderId() {
		return this.merOrderId;
	}

	public void setMerOrderId(String merOrderId) {
		this.merOrderId = merOrderId;
	}


	@Column(name="MER_REMARK1", length=500)
	public String getMerRemark1() {
		return this.merRemark1;
	}

	public void setMerRemark1(String merRemark1) {
		this.merRemark1 = merRemark1;
	}


	@Column(name="MER_REMARK2", length=500)
	public String getMerRemark2() {
		return this.merRemark2;
	}

	public void setMerRemark2(String merRemark2) {
		this.merRemark2 = merRemark2;
	}


	@Column(name="MER_REMARK3", length=500)
	public String getMerRemark3() {
		return this.merRemark3;
	}

	public void setMerRemark3(String merRemark3) {
		this.merRemark3 = merRemark3;
	}


	@Column(name="MER_REMARK4", length=500)
	public String getMerRemark4() {
		return this.merRemark4;
	}

	public void setMerRemark4(String merRemark4) {
		this.merRemark4 = merRemark4;
	}


	@Column(name="MER_REMARK5", length=500)
	public String getMerRemark5() {
		return this.merRemark5;
	}

	public void setMerRemark5(String merRemark5) {
		this.merRemark5 = merRemark5;
	}


	@Column(name="MER_TXN_AMT", nullable=false, precision=20, scale=2)
	public BigDecimal getMerTxnAmt() {
		return this.merTxnAmt;
	}

	public void setMerTxnAmt(BigDecimal merTxnAmt) {
		this.merTxnAmt = merTxnAmt;
	}


	@Column(name="MER_TXN_CD", nullable=false, length=10)
	public String getMerTxnCd() {
		return this.merTxnCd;
	}

	public void setMerTxnCd(String merTxnCd) {
		this.merTxnCd = merTxnCd;
	}


	@Column(name="MER_TXN_TM", nullable=false)
	public Timestamp getMerTxnTm() {
		return this.merTxnTm;
	}

	public void setMerTxnTm(Timestamp merTxnTm) {
		this.merTxnTm = merTxnTm;
	}
	
	@Column(name="PAY_INFO", length=50)
	public String getPayInfo() {
		return this.payInfo;
	}

	public void setPayInfo(String payInfo) {
		this.payInfo = payInfo;
	}


	@Lob
	@Column(name="RECV_INFO")
	public String getRecvInfo() {
		return this.recvInfo;
	}

	public void setRecvInfo(String recvInfo) {
		this.recvInfo = recvInfo;
	}


	@Column(name="REQ_REFER", length=1000)
	public String getReqRefer() {
		return this.reqRefer;
	}

	public void setReqRefer(String reqRefer) {
		this.reqRefer = reqRefer;
	}


	@Column(name="RSP_CODE", nullable=false, length=4)
	public String getRspCode() {
		return this.rspCode;
	}

	public void setRspCode(String rspCode) {
		this.rspCode = rspCode;
	}


	@Column(name="SIGN_TYPE", length=1)
	public String getSignType() {
		return this.signType;
	}

	public void setSignType(String signType) {
		this.signType = signType;
	}


	@Column(name="SYS_REMARK", length=200)
	public String getSysRemark() {
		return this.sysRemark;
	}

	public void setSysRemark(String sysRemark) {
		this.sysRemark = sysRemark;
	}


	@Column(name="TRAN_CMD", length=2)
	public String getTranCmd() {
		return this.tranCmd;
	}

	public void setTranCmd(String tranCmd) {
		this.tranCmd = tranCmd;
	}


	


	@Column(name="TRANS_LAUNCH_IP", nullable=false, length=50)
	public String getTransLaunchIp() {
		return this.transLaunchIp;
	}

	public void setTransLaunchIp(String transLaunchIp) {
		this.transLaunchIp = transLaunchIp;
	}

	@Column(name = "REMOTE_IP",length = 40)
	public String getRemoteIp() {
		return remoteIp;
	}

	public void setRemoteIp(String remoteIp) {
		this.remoteIp = remoteIp;
	}

}